--[Patch]--
Title("Seaside Hill (Sonic Hacking Contest 2021)")
Author("Knuxfan24")
Platform("Xbox 360")

--[Functions]--
BeginBlock("core\archives\text.arc")

--Stage Names--
TextEdit("core\text\english\msg_mainmenu.e.mst"|"waveocean"|""|"SEASIDE HILL")
TextEdit("core\text\english\msg_mainmenu.e.mst"|"waveocean_tails"|""|"SEA GATE")
TextEdit("core\text\english\msg_mainmenu.e.mst"|"waveocean_blaze"|""|"SEASIDE HILL")

--Typo Fix--
TextEdit("core\text\english\msg_hint.e.mst"|"hint_all04_a00_am"|"sound(all04_a00_am)"|"$If you take damage you'll lose your Rings.\nOr if you don't have any Rings, it's over.\nBe careful, okay?")

-- Hint Additions--
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos02_a00_gen"|"sound(bos02_a00_gen),sound(bos02_a01_gen)"|"$Unauthorized Access Detected\f$Defence Systems Engaged")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos02_a02_gen"|"sound(bos02_a02_gen)"|"$Warning: System Status Twenty Five Percent")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos02_a03_tl_trim"|"sound(bos02_a03_tl_trim)"|"$Watch out, Sonic!")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos02_a04_tl_extra"|"sound(all01_e09_kn),sound(bos02_a04_tl)"|"$W, what!?\f$Sonic! It's coming!")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos06_e00_sd_trim"|"sound(bos06_e00_sd_trim)"|"$The Doctor's guard... \nStill, I need to get through here.")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_bos07_a02_sn_trim"|"sound(bos07_a02_sn)"|"$It looks like bound jumps from overhead\nshould be effective...")
TextAdd("core\text\english\msg_hint.e.mst"|"hint_mis01_e06_sn_trim"|"sound(mis01_e06_sn)"|"$Okay then... \nTails, Knuckles, let's do this together!")

EndBlock("core\archives\text.arc")

--All Character's Have Sonic's Speed But It's Actually Roughly The Blue Gem's Speed--
BeginBlock("core\archives\player.arc")
Ignore("select"|"boss"|"board"|"super")
ParameterEdit("core\player"|"c_walk_speed_max"|"4 * (meter / sec)")
ParameterEdit("core\player"|"c_run_speed_max"|"30 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_brake"|"25 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_speed_acc"|"20 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_speed_brake"|"20 * (meter / sec)")
ParameterEdit("core\player"|"c_speedup_speed_max"|"45 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_speed"|"9 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_walk"|"HeightAndDistanceToSpeed(l_jump_walk, l_jump_hight)")
ParameterEdit("core\player"|"c_jump_run"|"9 * (meter / sec)")
ParameterEdit("core\player"|"c_jump_speed_sand"|"SpeedByHeightBias(c_jump_speed, 0.5)")
ParameterEdit("core\player\sonic_new.lub"|"c_spindash_spd"|"60 * (meter / sec)")
ParameterEdit("core\player\sonic_new.lub"|"c_lightdash_speed"|"90 * (meter / sec)")
ParameterEdit("core\player\shadow.lub"|"c_lightdash_speed"|"90 * (meter / sec)")

--Stop Tails from trying to be smart (Thanks Gordon!)--
StringReplace("core\player\tails.lub"|"  OpenLockOn(_ARG_0_, "lockon_chase", stepable_pre)"|"")
EndBlock("core\archives\player.arc")

--Add missing animations to Amigos (Thanks Chara!)--
BeginBlock("core\archives\player.arc")
PackageEdit("core\player\knuckles.pkg"|"motion"|"chainjump_s"|"player/knuckles/kn_jump_l_Root.xnm")
PackageEdit("core\player\knuckles.pkg"|"motion"|"chainjump_landing"|"player/knuckles/kn_landing00_l_Root.xnm")
PackageEdit("core\player\omega.pkg"|"motion"|"chainjump_s"|"player/omega/om_jump_l_Root.xnm")
PackageEdit("core\player\omega.pkg"|"motion"|"chainjump_landing"|"player/omega/om_landing00_l_Root.xnm")
PackageEdit("core\player\omega.pkg"|"motion"|"wind"|"player/omega/om_float_l_Root.xnm")
PackageEdit("core\player\rouge.pkg"|"motion"|"chainjump_s"|"player/rouge/ro_jump_l_Root.xnm")
PackageEdit("core\player\rouge.pkg"|"motion"|"chainjump_landing"|"player/rouge/ro_landing00_l_Root.xnm")
PackageEdit("core\player\tails.pkg"|"motion"|"chainjump_s"|"player/tails/ta_jump_l_Root.xnm")
PackageEdit("core\player\tails.pkg"|"motion"|"chainjump_landing"|"player/tails/ta_landing00_l_Root.xnm")
EndBlock("core\archives\player.arc")
